package com.sinosoft.jwjw.utils;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

/**
 * Created by LB on 2018/6/29.
 */

public class ResultList {

    private int code;

    private String msg;

    private String innermsg;

    private JSONArray result;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getInnermsg() {
        return innermsg;
    }

    public void setInnermsg(String innermsg) {
        this.innermsg = innermsg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public JSONArray getResult() {
        return result;
    }

    public void setResult(JSONArray result) {
        this.result = result;
    }


    @Override
    public String toString() {
        if(result == null)
            result = new JSONArray();
        JSONObject jo = new JSONObject();
        jo.put("code", code);
        jo.put("msg", msg);
        jo.put("innermsg", innermsg);
        jo.put("result", result);

        return jo.toString();
    }
}
